package com.api.shopapi.service;

import com.api.shopapi.entity.ArticleClass;
import com.api.shopapi.entity.dto.ArticleClassDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ArticleClassService {

    int insert(ArticleClass articleClass);

    int update(ArticleClass articleClass);

    ArticleClass getByArticleClassCode(String articleClassCode);

    List<ArticleClass> getListByParentArticleClassCode(String parentArticleClassCode);

    List<ArticleClassDTO> getListByGovernmentCode(String governmentCode);

    PageInfo<ArticleClassDTO> getPage(int pageIndex, int pageSize, String name, String governmentCode);

}
